import java.net.*;

class InetAddresstest {
	public static void main(String[] args) throws UnknownHostException {
		String host = "localhost";

		if (args.length == 1)
			host = args[0];

		InetAddress ia = InetAddress.getByName(host);

		System.out.println("Canonical Host Name = " + ia.getCanonicalHostName());
		System.out.println("Host Address = " + ia.getHostAddress());
		System.out.println("Host Name = " + ia.getHostName());
		
		System.out.println("Is Loopback Address = " + ia.isLoopbackAddress());
	System.out.println("hello ni mei");
	}
}